<?php
function rss_transform($post) {

    return array('title' => $post['Post']['title'],
                        'link' => '/view/'.$post['Post']['slug'],
                        'guid' => array('/view/'.$post['Post']['slug'],'isPermaLink'=>'true'),
                        'description' => '<p>'.strip_tags($post['Post']['description']).'</p>',
                        'pubDate' => $post['Post']['created'],
                        'author' => array('name'=>'Freelogo'),
                        'comments'=>'/sitemaps/comment.rss',
    );
}

echo $rss->items($posts, 'rss_transform');
?>
